<html>
<head>
<title>内容管理-内容分类</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<th:block th:replace="/backend/layouts/common-head::iframe-common-js-css"></th:block>
<style>
.tree .tree-icon {
	background: none;
	width: 0;
}
</style>
</head>
<body class="iframe-body">
	<div class="iframe-main">
		<div style="display: none;">
			<input id="category-type_table" class="easyui-textbox" th:value="${category_type_table}" /> <input id="category-type" class="easyui-textbox" th:value="${category_type}" />
		</div>
		<table id="content-def-categories"></table>
	</div>
	<div style="display: none;">
		<div id="content-def-categories-tb" style="padding: 2px 5px;">
			<a href="javascript:void(0);" class="easyui-linkbutton" onclick="return clickAdd()" iconCls="icon-search">添加</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain: true" onclick="return clickDeleteLabel()">删除</a>
		</div>

		<div id="category-dialog" class="easyui-dialog" style="width: 400px; min-height: 120px; padding: 8px;"
			data-options="
			closed: true,
            onResize:function(){
                $(this).dialog('center');
            }">

			<div style="display: none;">
				<input id="category-id" class="easyui-textbox" data-options="width:'100%'" label="分类ID" />
			</div>
			<div style="padding-top: 10px; padding-bottom: 10px;">
				<input id="category-parent_id" data-options="width:'100%'" label="父级">
			</div>
			<div style="padding-top: 10px; padding-bottom: 10px;">
				<input id="category-name" class="easyui-textbox" data-options="width:'100%'" label="分类名" />
			</div>
			<div style="padding-top: 10px; padding-bottom: 10px;">
				<input id="category-order_num" class="easyui-numberbox" data-options="width:'50%',min:0,precision:0" label="排序号" />
			</div>
			<div style="text-align: right; padding-bottom: 10px;">
				<a href="javascript:void(0);" onclick="doSubmit()" class="easyui-linkbutton" data-options="width:'120px'">保存</a>
			</div>
		</div>
	</div>

	<th:block th:replace="/backend/layouts/iframe-public::url-and-data"></th:block>
	<script type="text/javascript" th:inline="javascript">
		var contentDefCategoriesUrl = [[@{/backend/category/infos.html}]];
		var contentDefCategoriesSaveUrl = [[@{/backend/category/save.html}]];
	</script>
	<script type="text/javascript" th:src="@{'/public/jcms/backend/content/category.js'}"></script>
</body>
</html>